
import request from "@/utils/request";

enum API {
    PARAMDEFINE_URL = "/itp/api/param/def",
} 
export default{
    getParamDefineList:(current: number, size: number, data: any)=>request.post(`${API.PARAMDEFINE_URL}/page?current=${current}&size=${size}`, data),//查询
    saveParamDefine:(data:any)=>request.post(`${API.PARAMDEFINE_URL}/save`,data),//新增
    getParamDefineDetail:(id:number)=>request.get(`${API.PARAMDEFINE_URL}/detail?id=${id}`),//通过id查询
    delParamDefine:(id:number) => request.get(`${API.PARAMDEFINE_URL}/delete?id=${id}`),//删除
}